package com.example.reactor.guide.chapter3.annotation;

import com.example.reactor.guide.chapter3.repository.EmployeeRepository;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class EmployeeSpringApplication {

    public static void main(String[] args) {
        SpringApplication.run(EmployeeSpringApplication.class, args);
    }

    @Bean
    EmployeeRepository employeeRepository() {
        return new EmployeeRepository();
    }
}